<?PHP
$v_category=new content_category;
$v_category->get_category();
$content=new content;

$content->everything=TRUE;
$content->plain=TRUE;
$content->get_content();
//$content->options['order'][0]='modified';
//$content->options['order'][1]='desc';
//$content->get_content();
$headers[]='Id';
$headers[]='Title';
$headers[]='Type';
$headers[]='Category';
$headers[]='Status';
$headers[]='Action';
$show[]='id';
$show[]='title';
$show[]='type';
$show[]='category_name';
$show[]='status';


foreach($content->data as $x)
{
	$x['category_name']=$v_category->data[$x['category']]['name'];
	
	$content_data[]=$x;
}

$links['Edit']='?q=m/content/d_content.php&cmd=edit&id=';
printformheader('Content','Content Listing');

if(!empty($content_data))
{

	p_table($headers,$content_data,$links,"class='tablesorter'",$show,$ajax,FALSE);

} 
printformfooter(NULL,NULL,NULL,NULL,NULL,NULL);
?>